package com.xiaomaoguai.range;

import org.junit.Test;

import com.google.common.collect.ComparisonChain;
import com.google.common.collect.Range;

/**
 * @Description :
 * @FileName: TestBaseRange.java
 * @Author :WeiHui.Zhang
 * @Data : 2015年6月18日 下午3:30:19
 * @Version:V1.00
 */
public class TestBaseRange {

	@Test
	public void testRange() {
		System.out.println("open:" + Range.open(1, 10));

		System.out.println("open:" + Range.closed(1, 10));

		System.out.println("open:" + Range.openClosed(1, 10));

		System.out.println("open:" + Range.closedOpen(1, 10));

		 char c= '\u2025';
		 System.out.println(c);
	}

	@Test
	public void testRange2() {
		Range<Integer> range = Range.open(1, 10);
		System.out.println(range.contains(9));
		System.out.println(range.contains(10));
		System.out.println(ComparisonChain.start().compare(60, 20).result());
	}
}
